package com.algernoon.rpc.springrpc.rmi.burlap;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.caucho.BurlapProxyFactoryBean;

@Configuration
@SuppressWarnings("deprecation")
public class BurlapRmiClientConfig {

	@Bean
	public BurlapProxyFactoryBean initBurlapProxyFactoryBean() {
		BurlapProxyFactoryBean factoryBean = new BurlapProxyFactoryBean();
		factoryBean.setServiceUrl("http://localhost:8080/BurlapUserService");
		factoryBean.setServiceInterface(IBurlapUserService.class);
		return factoryBean;
	}
}
